package com.yunkazaixian.mqtt.utils;

import java.util.List;

public class ListUtils {
    public static boolean isEmpty(List list){
        if (list==null|| list.isEmpty()){
            return true;
        }
        return false;
    }

    public static int getSize(List list){
        if (list==null|| list.isEmpty()){
            return 0;
        }
        return list.size();
    }
}
